package com.five.api.system;

import com.five.dto.RoleDto;
import com.five.pojo.Role;
import com.five.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "user-service", contextId = "roleServiceAPI")
public interface RoleServiceAPI {
    @PostMapping("/queryPage")
    Result queryPage(@RequestBody Role role);

    @PostMapping("/queryAll")
    Result queryAll();

    @PostMapping("/deleteById/{id}")
    Result deleteById(@PathVariable("id") Long id);

    @PostMapping("/deleteBatch")
    Result deleteBatch(@RequestBody List<Long> ids);

    @PostMapping("/save")
    Result save(@RequestBody RoleDto roleDto);




}
